<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <p>{{msg}}</p>
    <p>{{msg.toUpperCase()}}</p>
    <!-- textContent -->
    <p v-text="msg"></p>
    <!-- innerHTML -->
    <p v-html="msg"></p>
    <img :src="imgUrl"></img>
    <img v-bind:src="imgUrl"></img>
    <button v-on:click="clickme">点击</button>
    <button @click="clickme">点击</button>
  </div>
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
        msg: `<a href="http://www.baidu.com">百度一下，你就知道</a>`,
        imgUrl: 'https://cn.vuejs.org/images/logo.png'
      },
      methods: {
        clickme() {
          alert('不要点我');
        }
      }
    })
  </script>
</body>

</html>